import request from '@/utils/request'

// 查询医生审核列表
export function listDocregist(query) {
  return request({
    url: '/hk/docregist/list',
    method: 'get',
    params: query
  })
}

// 查询医生审核详细
export function getDocregist(doctorRegistId) {
  return request({
    url: '/hk/docregist/' + doctorRegistId,
    method: 'get'
  })
}

// 新增医生审核
export function addDocregist(data) {
  return request({
    url: '/hk/docregist',
    method: 'post',
    data: data
  })
}

// 修改医生审核
export function updateDocregist(data) {
  return request({
    url: '/hk/docregist',
    method: 'put',
    data: data
  })
}

// 删除医生审核
export function delDocregist(doctorRegistId) {
  return request({
    url: '/hk/docregist/' + doctorRegistId,
    method: 'delete'
  })
}

// 医生审核确认
export function confirmAudit(data) {
  return request({
    url: '/hk/docregist/confirmAudit',
    method: 'post',
    data: data
  })
}
